package cn.newtouch.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.newtouch.basic.domain.BaseDomain;
import lombok.Data;

import java.util.Date;

@Data
public class Shop extends BaseDomain {
    @Excel(name = "店铺名称",orderNum = "1",width = 30)
    private String name;
    @Excel(name = "店铺电话",orderNum = "2",width = 30)
    private String tel;

    @Excel(name = "入驻日期",orderNum = "3",width = 30,exportFormat="yyyy-MM-dd")
    private Date registerTime=new Date();
    @Excel(name = "店铺状态",orderNum = "4",width = 30)
    private Integer state=1;
    @Excel(name = "店铺地址",orderNum = "5",width = 30)
    private String address;
    @Excel(name = "店铺logo",orderNum = "6",width = 30)
    private String logo;

    @Excel(name = "店长id",orderNum = "7",width = 30)
    private Long admin_id;//店长id 对应employee

    //对应admin_id 并且前端shop里面写的就是admin 所以必须写admin xml里面字段也是admin
    private Employee admin;


}
